package dao

import (
	"time"
)

// 这是 LiPaymentLog 的全局公开dao对象
var LiPaymentLogDao = liPaymentLogDao{}

// 这是 li_payment_log表 的实体类
type LiPaymentLog struct {
	Id            int       `json:"id" form:"id" v:"id"`                                     // ID
	CreateTime    time.Time `json:"create_time" form:"create_time" v:"create_time"`          // 创建时间
	IsPay         bool      `json:"is_pay" form:"is_pay" v:"is_pay"`                         // 是否已支付
	OrderNo       string    `json:"order_no" form:"order_no" v:"order_no"`                   // 订单编号
	OutOrderNo    string    `json:"out_order_no" form:"out_order_no" v:"out_order_no"`       // 第三方支付请求流水
	PaymentName   string    `json:"payment_name" form:"payment_name" v:"payment_name"`       // 支付方式名称
	PaymentSource string    `json:"payment_source" form:"payment_source" v:"payment_source"` // 支付来源
	ReceivableNo  string    `json:"receivable_no" form:"receivable_no" v:"receivable_no"`    // 第三方付款流水号
	SuccessTime   time.Time `json:"success_time" form:"success_time" v:"success_time"`       // 支付成功
	TotalAmount   float64   `json:"total_amount" form:"total_amount" v:"total_amount"`       // 金额
	Type          string    `json:"type" form:"type" v:"type"`                               // 交易类型

}

// 注意:这是 LiPaymentLog 的私有dao对象
type liPaymentLogDao struct {
	Insert func(arg LiPaymentLog) int          //插入一条记录
	Update func(arg LiPaymentLog) int          //更新一条记录
	Delete func(arg LiPaymentLog) int          //删除一条记录
	Select func(arg LiPaymentLog) LiPaymentLog //获取一条记录
}
